package com.fudan.framework.web.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 静态页面接口
 * @author Xuxinxing
 *
 */
public interface PathController {
	public String pathPrefix();
    @RequestMapping("/p/{path}")
    default public String findPage(@PathVariable("path") String path) {
        StringBuilder p = new StringBuilder();
        p.append(pathPrefix()).append("/").append(path);
        return p.toString();
    }
}
